#ifndef   _HEART_BEAT_H_
#define   _HEART_BEAT_H_


#include "Type.h"

#include  "task.h"

#include "sleep_data.h"
#include "area.h"


#define D_task_heartbeat_1	0x20
#define D_task_heartbeat_2	0x30
#define D_task_heartbeat_3	0x40

#define D_task_heartbeat_alarm	0x50


struct _s_task_heartbeat
{
	_ts_task task;

	volatile INT32U times;
	volatile unsigned char moment;
};
extern struct _s_task_heartbeat s_task_heartbeat;

void L2_task_heartbeat_init(struct _s_task_heartbeat *s);
void L2_task_heartbeat_handdle(struct _s_task_heartbeat *s);



#endif

